package com.example.chainofresponsibilitypattern.entity;

/**
 * @author ash
 * @description
 * @create 2023/2/22  23:37:34
 * @className ConcreteHandler3
 * @verson 1.0.0
 */
public class ConcreteHandler3 extends Handler{
    @Override
    public void handlerRequest(int request) {
        if (request > 20 && request <= 100){
            System.out.println("执行请求3");
        } else if (successor != null) {
            System.out.println("执行请求3权限不足,继续进入下一级");
            successor.handlerRequest(request);
        }
    }
}
